import store from "../store"
// 引入axios请求
import {
    movieRequest
} from "../../api";

// 获取电影数据的action(需要用到async&await)
export const getMovieAction = () => {
    return async() => {
        const re =await movieRequest()
        store.dispatch({
            type: 'getMovieList',
            data: re.data.data.list
        })
    }
}